using MediatR;
using UniversalAdmin.Domain.DomainEvents;
using System.Threading;
using System.Threading.Tasks;
using System;

namespace UniversalAdmin.Domain.EventHandlers;

public class RolePermissionAssignedEventHandler : INotificationHandler<RolePermissionAssignedEvent>
{
    public Task Handle(RolePermissionAssignedEvent notification, CancellationToken cancellationToken)
    {
        Console.WriteLine($"[DomainEvent] 角色权限分配: RoleId={notification.RoleId}, PermissionId={notification.PermissionId}");
        return Task.CompletedTask;
    }
} 